<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改ADCP数据')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-adcpData-edit" th:object="${adcpData}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">艇编号：</label>
                <div class="col-sm-8">
                    <input name="boatCode" th:field="*{boatCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数据时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="time" th:value="${#dates.format(adcpData.time, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第一层流速：</label>
                <div class="col-sm-8">
                    <input name="speed1" th:field="*{speed1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第一层流向：</label>
                <div class="col-sm-8">
                    <input name="direction1" th:field="*{direction1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第二层流速：</label>
                <div class="col-sm-8">
                    <input name="speed2" th:field="*{speed2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第二层流向：</label>
                <div class="col-sm-8">
                    <input name="direction2" th:field="*{direction2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第三层流速：</label>
                <div class="col-sm-8">
                    <input name="speed3" th:field="*{speed3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第三层流向：</label>
                <div class="col-sm-8">
                    <input name="direction3" th:field="*{direction3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第四层流速：</label>
                <div class="col-sm-8">
                    <input name="speed4" th:field="*{speed4}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第四层流向：</label>
                <div class="col-sm-8">
                    <input name="direction4" th:field="*{direction4}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第五层流速：</label>
                <div class="col-sm-8">
                    <input name="speed5" th:field="*{speed5}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第五层流向：</label>
                <div class="col-sm-8">
                    <input name="direction5" th:field="*{direction5}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第六层流速：</label>
                <div class="col-sm-8">
                    <input name="speed6" th:field="*{speed6}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第六层流向：</label>
                <div class="col-sm-8">
                    <input name="direction6" th:field="*{direction6}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第七层流速：</label>
                <div class="col-sm-8">
                    <input name="speed7" th:field="*{speed7}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第七层流向：</label>
                <div class="col-sm-8">
                    <input name="direction7" th:field="*{direction7}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第八层流速：</label>
                <div class="col-sm-8">
                    <input name="speed8" th:field="*{speed8}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第八层流向：</label>
                <div class="col-sm-8">
                    <input name="direction8" th:field="*{direction8}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第九层流速：</label>
                <div class="col-sm-8">
                    <input name="speed9" th:field="*{speed9}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第九层流向：</label>
                <div class="col-sm-8">
                    <input name="direction9" th:field="*{direction9}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第十层流速：</label>
                <div class="col-sm-8">
                    <input name="speed10" th:field="*{speed10}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第十层流向：</label>
                <div class="col-sm-8">
                    <input name="direction10" th:field="*{direction10}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "boat/adcpData";
        $("#form-adcpData-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-adcpData-edit').serialize());
            }
        }

        $("input[name='time']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>